package com.party.web.web.dto.output.member;

import com.party.core.model.commune.CMoment;
import com.party.core.model.dynamic.Dypics;
import com.party.web.web.dto.output.circle.TopicOutput;
import com.party.web.web.dto.output.dynamic.DynamicOutput;
import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * @program: party
 * @description: 动态输出实体
 * @author: Hua Qunhao
 * @create: 2019-12-19 09:46
 **/
public class CMomentOutput extends CMoment {
    private String memberName;
    private String memberLogo;
    private List<String> picList;
    private List<Map<String,Object>> members;


    public List<Map<String, Object>> getMembers() {
        return members;
    }

    public void setMembers(List<Map<String, Object>> members) {
        this.members = members;
    }

    public List<String> getPicList() {
        return picList;
    }

    public void setPicList(List<String> picList) {
        this.picList = picList;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberLogo() {
        return memberLogo;
    }

    public void setMemberLogo(String memberLogo) {
        this.memberLogo = memberLogo;
    }


    public static CMomentOutput transform(CMoment input) {
        CMomentOutput output = new CMomentOutput();
        try {
            BeanUtils.copyProperties(output, input);
        } catch (IllegalAccessException | InvocationTargetException e) {
            e.printStackTrace();
        }
        return output;
    }
}
